import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import WebsocketClient from './utils/ws'

const app = createApp(App);

//单例模式连接服务器的信息, 全局的挂载，方便使用。
WebsocketClient.Instance.connect();
app.config.globalProperties.$ws = WebsocketClient.Instance;

app.config.globalProperties.$test = 100;

app.use(store).use(router).mount('#app')
